package com.yuan.springcloud.user.bean.dto;

import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author YouYuan
 * @date 2021/1/10 1:46
 */
@Data
@ApiModel(description = "用户信息数据传输类")
public class UserInfoDTO {

    @ApiModelProperty(value = "用户ID", example = "1")
    private Long id;

    @ApiModelProperty(value = "用户名", example = "YouYuan")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "盐值", example = "120")
    private Integer salt;

    @ApiModelProperty(value = "昵称", example = "友缘")
    private String nickname;

    @ApiModelProperty(value = "邮箱", example = "xiyousuiyuan@163.com")
    private String email;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "用户类型")
    private Integer userType;

    @ApiModelProperty(value = "启用状态(0:启用,1:禁用)")
    private Integer isEnable;

    @ApiModelProperty(value = "删除状态(0:未删除,1:已删除)")
    private Integer isDelete;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    @ApiModelProperty(value = "创建人")
    private Long createBy;
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createDate;
    @ApiModelProperty(value = "更新人")
    private Long updateBy;
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "角色名称列表")
    private List<String> roleList;
}
